package org.example.afiona.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.afiona.common.VO.ResultVO;
import org.example.afiona.common.utils.ResultVOUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: leo
 * @date: 2021/6/9
 */
@RestController
@Api(tags = "订单")
public class OrderController {
    @GetMapping("/order/status")
    @ApiOperation("获取订单状态")
    public ResultVO<Integer> getOrderStatus(){
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return ResultVOUtil.success(1000);
    }
}
